package cn.java86.g;

import java.util.*;

/**
 * @author oldliu
 * @since 1.0
 */
//花园
public class Gardon {
    private String name;
    private String addr;
    //花的品种
    private List<String> flowers=new ArrayList<>(0);
    //工人
    private Map<String,String> emps=new HashMap<>();

    public void show(){
        System.out.println(name+"地址在："+addr);
        System.out.println("培育的品种有："+flowers);
        System.out.println("员工有：");
        for(Map.Entry<String,String> entry:emps.entrySet()){
            System.out.println(entry.getKey()+"---"+entry.getValue());
        }
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public void setFlowers(List<String> flowers) {
        this.flowers = flowers;
    }

    public void setEmps(Map<String, String> emps) {
        this.emps = emps;
    }
}
